<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <style>
    
  </style>
</head>
<body>
  
</body>
<script>

  function CreatePeople(n, a, s){
    const obj = {};
    obj.name = n;
    obj.age = a;
    obj.sex = s;
    return obj;
  }

  function Man(n, a){
    // n
    // a
    // ...
    return CreatePeople(n, a, "男");
  }

  function Woman(n, a){
    return CreatePeople(n, a, "女");
  }

  const c = CreatePeople("admin", 18, "未知");
  
  const p1 = Man("张三", 19);
  const p2 = Woman("李四", 18);
  const p3 = Woman("王二", 20);
  const p4 = Man("赵五", 21);
  
  console.log(c);

  console.log(p1);
  console.log(p2);
  console.log(p3);
  console.log(p4);
  
</script>
</html>